#pragma once

#include <bullet/btBulletDynamicsCommon.h>
#include <GL/glew.h>

class slPrimitive
{
public:
	slPrimitive();

	virtual ~slPrimitive();
	virtual void draw();

	virtual void 			setTexture(GLuint textureID);
	virtual void 			enableTexture();
	virtual btRigidBody 	*getRigidBody();

	void 	setColor(float r, float g, float b);
	void 	setColor();

protected:
	btScalar 				matrix[16];
	btRigidBody 			*body;
	btDefaultMotionState 	*myMotionState;
	btTransform 			myTransform;
	btCollisionShape* 		shape;
	btScalar 				mass;
	GLuint 					id;
	bool					texture;
	float					_r, _g, _b;
};